//
//  CCAVConfig.m
//  IntellDev_new
//
//  Created by os on 2021/3/12.
//

#import "CCAVConfig.h"

@implementation CCAudioConfig

+ (instancetype)defaultConfig {
    return [[CCAudioConfig alloc] init];
}

- (instancetype)init {
    if (self = [super init]) {
        self.bitrate = 96000;
        self.channelCount = 1;
        self.sampleSize = 16;
        self.sampleRate = 44100;
    }
    return self;
}

@end

@implementation CCVideoConfig

+ (instancetype)defaultConfig {
    return [[CCVideoConfig alloc] init];
}

- (instancetype)init {
    if (self = [super init]) {
        self.width = 480;
        self.height = 640;
        self.bitrate = 640 * 1000;
        self.fps = 25;
    }
    return self;
}

@end
